]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shellMountOperation: Add missing docstrings
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 6 Jul 2026 17:37:42 +0000 (19:37 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 2 Aug 2026 16:50:14 +0000 (18:50 +0200)
For some reason, eslint trips up with non-exported classes with
a static initializer. Add the missing docs that somehow make it
happy.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4248>
(cherry picked from commit 46a3ec66913df94da6da5661cb3c090f28ce6253)

js/ui/shellMountOperation.js

index aa180baf1d49836bc27370c42c8befe7bfa6f3f6..05a9a5a23c4dda0fcab6a5b6bb51c0fa4ea791c8 100644 (file)
@@ -23,6 +23,12 @@ const WORK_SPINNER_ICON_SIZE = 16;
 const REMEMBER_MOUNT_PASSWORD_KEY = 'remember-mount-password';
 
 /* ------ Common Utils ------- */
+
+/**
+ * @param {ModalDialog.ModalDialog} dialog
+ * @param {string[]} oldChoices
+ * @param {string[]} choices
+ **/
 function _setButtonsForChoices(dialog, oldChoices, choices) {
     const buttons = [];
     let buttonsChanged = oldChoices.length !== choices.length;
@@ -42,6 +48,10 @@ function _setButtonsForChoices(dialog, oldChoices, choices) {
         dialog.setButtons(buttons);
 }
 
+/**
+ * @param {Dialog.MessageDialogContent} content
+ * @param {string} message
+ **/
 function _setLabelsForMessage(content, message) {
     const labels = message.split('\n');